package com.six.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.six.mapper.CustomerMapper;
import com.six.pojo.Customer;
import com.six.pojo.dto.CustomerCapitalDto;
import com.six.pojo.dto.CustomerInfoDto;
import com.six.service.CustomerService;
import org.springframework.stereotype.Service;

/**
 * @author luolu
 * @create 2022/3/7 14:42
 */
@Service
public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> implements CustomerService {

    @Override
    public Page<CustomerInfoDto> findCustomerInfoPage(Page page, Long id) {
        return getBaseMapper().findCustomerInfoPage(page,id);
    }

    @Override
    public Page<CustomerCapitalDto> findCustomerCapitalPage(Page page, Long id) {
        return getBaseMapper().findCustomerCapitalPage(page,id);
    }
}
